<template>
  <div class="box">
    <div class="content">
      <div class="student">
        <div class="student-avatar">
          <img
            src="https://img1.baidu.com/it/u=2716398045,2043787292&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=800"
            alt=""
          />
        </div>
        <ul class="student-info">
          <li>
            <span class="title">姓名：</span>
            <span class="text">王多鱼</span>
          </li>
          <li>
            <span class="title">班级：</span>
            <span class="text">高一1班</span>
          </li>
          <li>
            <span class="title">房间名：</span>
            <span class="text">201</span>
          </li>
          <li>
            <span class="title">检查人：</span>
            <span class="text">李多多</span>
          </li>
          <li>
            <span class="title">检查人电话：</span>
            <span class="text">13154651856</span>
          </li>
          <li>
            <span class="title">得/扣分：</span>
            <span :class="['text', 'red']">-4</span>
          </li>
          <li>
            <span class="title">宿舍：</span>
            <span class="text">清华苑A栋</span>
          </li>
          <li>
            <span class="title">检查类型：</span>
            <span class="text">内务检查</span>
          </li>
          <li>
            <span class="title">检查时间：</span>
            <span class="text">2021-12-31 13:30</span>
          </li>
          <li>
            <span class="title">打分时间：</span>
            <span class="text">2021-12-31 13:30:30</span>
          </li>
        </ul>
      </div>
      <div class="deduct-points">
        <div class="small-title">内务扣分</div>
        <div class="deduct-points-content">
          <div class="content-details">
            <ul>
              <li v-for="item in 9" :key="item">
                <span class="points">未叠被子：</span>
                <span class="deduct">-1</span>
              </li>
            </ul>
          </div>
          <div class="content-img-box">
            <div v-for="item in 4" :key="item" class="content-img">
              <img
                src="https://img1.baidu.com/it/u=2716398045,2043787292&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=800"
                alt=""
              />
            </div>
          </div>
        </div>
      </div>
      <div class="deduct-points">
        <div class="small-title">值日扣分</div>
        <div class="deduct-points-content">
          <div class="content-details">
            <ul>
              <li v-for="item in 9" :key="item">
                <span class="points">未叠被子：</span>
                <span class="deduct">-1</span>
              </li>
            </ul>
          </div>
          <div class="content-img-box">
            <div v-for="item in 4" :key="item" class="content-img">
              <img
                src="https://img1.baidu.com/it/u=2716398045,2043787292&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=800"
                alt=""
              />
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup></script>

<style lang="less" scoped>
.box {
  background: #f2f2f2;
  // padding: 50px 120px 24px;
  min-height: 100vh;
  .content {
    background: #ffffff;
    border-radius: 4px;
    padding: 24px;
    .student {
      border: 1px solid #e4b778;
      border-radius: 4px;
      padding: 24px;
      width: 100%;
      display: flex;
      align-items: center;
      margin-bottom: 24px;
      .student-avatar {
        width: 80px;
        height: 106px;
        border-radius: 4px;
        overflow: hidden;
        img {
          width: 100%;
          height: 100%;
        }
      }
      .student-info {
        flex: 1;
        display: flex;
        flex-wrap: wrap;
        padding: 0 24px;
        margin-bottom: 0;
        li {
          width: 20%;
          padding: 12px 0;
          font-size: 14px;
          .title {
            color: #999999;
            display: inline-block;
            width: 40%;
            text-align: end;
          }
          .text {
            color: #222222;
          }
          .red {
            color: #ff0000;
          }
        }
      }
    }
    .deduct-points {
      margin-bottom: 32px;
      &-content {
        padding: 14px 16px;
        background: #f8f8f8;
        border-radius: 4px;
        margin-top: 20px;
        display: flex;
        align-items: center;
      }
      .content-details {
        width: 40%;
        ul {
          display: flex;
          align-items: center;
          flex-wrap: wrap;
          margin-bottom: 0;
          line-height: 32px;
          li {
            width: 30%;
            font-size: 14px;
            .points {
              color: #999999;
            }
            .deduct {
              color: #222222;
            }
          }
        }
      }
      .content-img-box {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: wrap;
        .content-img {
          width: 86px;
          height: 86px;
          border-radius: 4px;
          background: #f2f2f2;
          margin: 12px;
          overflow: hidden;
          img {
            width: 100%;
            height: 100%;
          }
        }
      }
    }
  }
}
.small-title {
  font-size: 18px;
  font-family: Source Han Sans CN, Source Han Sans CN-Medium;
  font-weight: 500;
  color: #222222;
}
</style>
